package c_gs

import (
	"cade/src/bot/msg"
	"cade/src/core/log"
	Err "cade/src/proto/errorcode"
)

func GS_ChatLeaveRoom_R(message msg.Message, ctx interface{}) {
	req := message.(*msg.GS_ChatLeaveRoom_R)
	// bot := ctx.(*app.Bot)

	if req.ErrorCode != Err.OK {
		log.Error("    room leave failed:", Err.GetErrorText(req.ErrorCode))
	} else {
		log.Info("    leave room OK")
	}
}
